package com.lxq.live.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ExceptionAdvice {
    @ExceptionHandler(Exception.class)
    public void exception(Exception e) {
        System.err.println("Exception has been happened,that message :" + e.getMessage());
    }
}
